package com.gao.security.ferrmarker.core.context.authentication.domain;


import com.gao.security.ferrmarker.core.base.Principal;

/**
 * <p></p>
 *
 * @author GaoShuangWen
 * @since 2019-07-18 16:33
 */
public class AccountId implements Principal {

    private String userId;

    private AccountId(String userId){
        this.userId=userId;
    }

    public static AccountId newInstance(String userId){
        return new AccountId(userId);
    }

    @Override
    public String getName() {
        return this.userId;
    }
}
